package com.tradeplus.admin.model;

import java.io.Serializable;

import static javax.persistence.FetchType.LAZY;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

@Entity
@Table(name = "preference")
public class Preference implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(generator="BusinessInfoFieldSeq")
	private int memberId;
	private int groupId;
	
	@Basic(fetch = LAZY)
	@Lob @Column(name="PIC")
	private byte[] jsonData;

	public int getMemberId() {
		return memberId;
	}

	public void setMemberId(int memberId) {
		this.memberId = memberId;
	}

	public int getGroupId() {
		return groupId;
	}

	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}

	public byte[] getJsonData() {
		return jsonData;
	}

	public void setJsonData(byte[] jsonData) {
		this.jsonData = jsonData;
	}

}
